package com.accp.vehiclecare.dao.syhdao;

import com.accp.vehiclecare.pojo.Arvehicle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface IArvehicleDao extends BaseMapper<Arvehicle> {

    @Update("UPDATE `arvehicle`\n" +
            "SET\n" +
            "  `arvehiclekm` = `arvehiclekm`+#{arvehiclekm}\n" +
            "WHERE `arvehicleid` = #{arvehicleid};")
    int  updateArvehiclekm(@Param("arvehiclekm") Double arvehiclekm,
                           @Param("arvehicleid") Integer arvehicleid);
}
